<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>课程详情</title>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <link rel="stylesheet"  href="css/ViewCourse.css">
    <script type="text/javascript" src="/layui/src/layui.all.js"></script>
    <script type="text/javascript" src="/layui/src/jquery-3.2.1.min.js"></script>
    <script type="text/javascript" src="/layui/src/layui.js"></script>
    <script type="text/javascript" src="js/ViewCourse.js"></script>
</head>
<body>
<div class="layui-container">
    <div class="layui-row">
        <form id="form_id">
            <input type="hidden" name="course" id="courseid">
            <table border="1">
                <tr>
                    <th class="th" colspan="6">课程详情信息</th>
                    <input type="hidden" name="id">
                </tr>
                <tr>
                    <td class="td1">课程名称：</td>
                    <td>
                        <input type="text" class="layui-input" name="courseName" id="courseName" readonly= "true">
                    </td>
                    <td class="td1">上传时间：</td>
                    <td>
                        <input type="text" class="layui-input"  name="createDate" readonly= "true" id="createDate">
                    </td>
                    <td class="td1">上传人：</td>
                    <td>
                        <input type="text" class="layui-input"  name="createName" readonly= "true" id="createName">
                        <input type="hidden" name="createId">
                    </td>
                </tr>
                <tr>
                    <td class="td1">课程售价：</td>
                    <td>
                        <input type="text" class="layui-input" name="courseNprice" id="courseNprice" readonly= "true">
                    </td>
                    <td class="td1">课程关键字：</td>
                    <td colspan="1">
                        <input type="text" class="layui-input input1" name="coursePrimary" id="coursePrimary" readonly= "true">
                    </td>
                    <td class="td1">课程分类：</td>
                    <td>
                        <input type="text" class="layui-input input1"  name="courseCatory" id="courseCatory" readonly= "true">
                        <input type="hidden" name="courseCatoryId">
                    </td>
                </tr>
                <tr>
                    <td class="td1">点赞量：</td>
                    <td>
                        <input type="text" class="layui-input" name="courseName" id="likNum" readonly= "true">
                    </td>
                    <td class="td1">收藏量：</td>
                    <td>
                        <input type="text" class="layui-input"  name="createDate" readonly= "true" id="collectNum">
                    </td>
                    <td class="td1">评论量：</td>
                    <td>
                        <input type="text" class="layui-input"  name="createName" readonly= "true" id="shareNum">
                        <input type="hidden" name="createId">
                    </td>
                </tr>
                <tr>
                    <td class="td1">课程介绍：</td>
                    <td colspan="5">
                        <textarea class="textarea1 layui-textarea" name="courseIntro" id="courseIntro" readonly= "true"></textarea>
                    </td>
                </tr>
                <tr>
                    <td class="td1">备注：</td>
                    <td colspan="5">
                        <textarea class="layui-textarea textarea2"  name="remarks" id="remarks" readonly= "true"></textarea>
                    </td>
                </tr>
                <tr>
                    <td colspan="6" class="td2">
                        <span class="span1"><i class="layui-icon layui-icon-upload"></i>封面图</span>
                    </td>
                </tr>
                <tr>
                    <td class="td3 td5">预览图：</td>
                    <td colspan="5" class="td5">
                        <p id="imgpid">

                        </p>
                    </td>
                </tr>
                <tr>
                    <td colspan="6" class="td2">
                        <span class="span1"><i class="layui-icon layui-icon-upload"></i>课程视频</span>
                    </td>
                </tr>
                <tr>
                    <td class="td3 td5">预览</td>
                    <td colspan="5" class="td5">

                        <video width="320" height="240" controls="controls" id="video_id">
                        </video>


                    </td>
                </tr>
            </table>
        </form>
    </div>


    <div id="divId2">
        <h2 class="Title"></h2>
        <p class="titp"><i class="layui-icon">&#xe642;</i>回复评论及需修改内容</p>
        <div id="divId3">
            <!-- 当前登录用户的ID -->
            <input id="UserId" type="hidden" name="UserId">
            <p class="divp">
                <span class="sp">用户名：</span>
                <input type="text" class="layui-input" readonly="true" id="sendUserName">
            </p>
            <p class="divp">
                <span class="sp">账号：</span>
                <input type="text" class="layui-input" readonly="true" id="sendUserAccount">
            </p>
            <p class="divp">
                <span class="sp"><span class="sp1">*</span>评论内容：</span>
                <textarea id="textsId" class="layui-textarea" name="content" placeholder="请发表您的评论"></textarea>
            </p>
            <button id="subBtn" class="layui-btn" onclick="addCommentInfo()">确定</button>
        </div>
        <p class="titp"><i class="layui-icon layui-icon-at"></i>全部评论<span id="commentNum"></span></p>
        <div>
            <ul id="commentUl"></ul>
            <div id="nocomDiv">没有更多评论了</div>
        </div>
    </div>


</div>

</body>
</html>